﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq;
class Program
{
    static void Main(string[] args)
    {
        List<int> data = new List<int>();
        DateTime now = DateTime.Now;
        Random random = new Random();
        for (int i = 0; i < 100; i++)
        {
            data.Add(random.Next(1001));
        }
        var nums = from n in data orderby n select n;
        foreach(var a in nums)
        {
            Console.Write(a+" ");
        }
    }
}

